package ysq.xyg.shop.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.shop.model.po.ShopBrand;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.shop.model.vo.ShopBrandVo;

import java.util.List;

/**
 * 商城模块-品牌service接口
 *
 * @author congcong tao
 * @date 2019-4-28 11:07:21
 */
public interface ShopBrandService extends BaseService<ShopBrand> {
    /**
     * 分页查询
     *
     * @param shopBrandVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-4-28 11:07:21
     */
    ReturnEntity page(ShopBrandVo shopBrandVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param shopBrandVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-4-28 11:07:21
     */
    ReturnEntity addOrUpdate(ShopBrandVo shopBrandVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-4-28 11:07:21
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param shopBrandVo 对象
     * @return List<ShopBrand> ShopBrand集合
     * @author congcong tao
     * @date 2019-4-28 11:07:21
     */
    List<ShopBrand> acceptList(ShopBrandVo shopBrandVo);

    ReturnEntity acceptSelect(String code);

    ReturnEntity acceptBrandAndItemCatSelect(String code);
}
